<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        body{
            display: flex;
            justify-content: start;
        }
        .box1{
            width: 300px;
            height: 300px;
            background-color: rgb(118, 140, 255);
            
        }
        .box2{
            width: 300px;
            height: 300px;
            background-color: aquamarine;
            transition: all 1s;
        }
        .box3{
            width: 300px;
            height: 300px;
            
        }
        @media (max-width:600px) {
            .box2{
                transform: translate(-189px);

            }
        }
        @media(min-width:800px){
            .box3{
                background-color: blueviolet;
            }
        }
    </style>
</head>
<body>
    <div class="box1"></div>
    <div class="box2"></div>
    <div class="box3"></div>
</body>
</html>